/*
 * BanBu_DialogueCell
 * @description 本文件提供对话列表的对话定制cell
 * @package
 * @author 		***
 * @copyright
 * @version 		1.0.2
 * @description 本文件提供对话列表的对话定制cell
 */

#import <UIKit/UIKit.h>
#import "UIImageView+WebCache.h"
#import "UIBadgeView.h"
#import "BanBu_MainCell.h"
// 各种状态
typedef enum
{
  DialogueMessageStausFailType=0,
  DialogueMessageStautusSentType,
  DialogueMessageStautusSendingType,
  DialogueMessageStautusReadType,
  DialogueMessageStautusNoneType

}DialogueMessageStautusType;



@interface BanBu_DialogueCell : BanBu_MainCell
{
    //暂时隐藏，不显示，2014/07/14
//    UIButton *_receiveAndsend;  //显示是发送的还是接受的消息,位置：第三行最左
    
    //昵称
    UILabel *_nameLabel;
    
    //性别
    UIImageView *_sexImgV;
    
    //年龄
    UILabel * _ageLabel;
    
    //vip
    UIImageView *_verify;
    
    //最近一条消息的时间
    UILabel *_lastTimeLabel;
    
    //对话内容
    UILabel *_lastDialogueLabel;
    
    //头像
    UIImageView *_iconView;
    
    ////头像上面显示的vip标志
    UIImageView *_vipImageView;
    
    //昵称
//    UIView * _iconForView;
    
    //cell分割线
    UIImageView *lineView;
    // 状态的
    
    UIImageView *_readAndsend;  //消息已读状态的背景图片，位置：第二行性别年龄后
    
    UILabel *_readAndSendLabel; //显示已读等状态

    //距离
    UILabel *_distanceLabel;    //显示距离
    
    //编辑时的按钮
    UIImageView*	m_checkImageView;
    
	BOOL			m_checked;
    
    UILabel * _nameLabelSayHi;//在现实打招呼时显示用户的性别年龄后面显示最后打招呼得人的姓名，与上面的_nameLabel（显示：陌生人打招呼）显示不同
    
    //2014年07月29日10:12:16新加位置背景
    UIImageView * _distanceBack;
    
}
@property (assign, nonatomic) BOOL sliding;//滑动删除为YES；点击多选删除为NO

@property(nonatomic,assign)UIButton *receiveAndsend;

- (void) setChecked:(BOOL)checked;

- (void)setAvatar:(NSString *)avatarUrlStr;
- (void)setName:(NSString *)name;
- (void)setAge:(NSString *)age sex:(BOOL)sex verify:(BOOL)verify;

//设置最后一条消息的发送时间
- (void)setLastInfo:(NSString *)infoStr;

- (void)setlastDialogue:(NSString *)content andType:(NSInteger)type;

//设置消息的已读状态
-(void)setReadAndSend:(DialogueMessageStautusType )type;

-(void)setBadageValue:(NSString*)badageValue;

//设置最后一条消息是接收的还是发送的
-(void)setReceiveAndsend11:(BOOL)isMe;

-(void)setDistance:(NSString *)distance;

- (void)cancelImageLoad;

//设置打招呼的最后一条消息的人的名字
-(void)setNameLastSayHi:(NSString *)pname;

@property (retain, nonatomic)UIBadgeView *badgeView;

//设置接收、发送按钮隐藏
-(void)setReceiveAndSendButtonHidden:(BOOL)isHidden;

-(void)setVIPFlag:(BOOL)_flag;
- (void)setVerify:(BOOL)_flag;
@end
